﻿// CWndAddClass.cpp: 实现文件
//

#include "pch.h"
#include "GameHacker.h"
#include "CWndAddClass.h"
#include "afxdialogex.h"


// CWndAddClass 对话框

IMPLEMENT_DYNAMIC(CWndAddClass, CDialogEx)

CWndAddClass::CWndAddClass(CWnd* pParent /*=nullptr*/)
	: CDialogEx(IDD_ADD_CLASS, pParent)
	, m_sAddress(_T("400000"))
	, m_sName(_T("UNNAMED"))
	, m_sNote(_T("未定义"))
	, m_dwSize(1024)
{

}

CWndAddClass::~CWndAddClass()
{
}

void CWndAddClass::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT1, m_sAddress);
	DDX_Text(pDX, IDC_EDIT7, m_sName);
	DDX_Text(pDX, IDC_EDIT8, m_dwSize);
	DDX_Text(pDX, IDC_EDIT9, m_sNote);
}


BEGIN_MESSAGE_MAP(CWndAddClass, CDialogEx)
	ON_BN_CLICKED(IDOK, &CWndAddClass::OnBnClickedOk)
END_MESSAGE_MAP()


// CWndAddClass 消息处理程序


void CWndAddClass::OnBnClickedOk()
{
	UpdateData(TRUE);
	CDialogEx::OnOK();
}
